package com.dts.server;

import lombok.extern.slf4j.Slf4j;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cloud.netflix.eureka.server.EnableEurekaServer;

/**
 * 注册/服务端配置
 *
 * @author zhoujh
 * @date 2022/05/31 15:40
 */
@SpringBootApplication
@EnableEurekaServer
@Slf4j
public class ServerApplication {
    public static void main(String[] args) {
        Long start = System.currentTimeMillis();
        SpringApplication.run(ServerApplication.class, args);
        log.warn("eureka服务启动成功，耗时：{}毫秒", (System.currentTimeMillis() - start));
    }
}
